package com.ruoyi.framework.config.properties;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
 * 获取服务器启动的ip和端口
 */
@ConfigurationProperties(prefix = "server")


public class ServerProperties {

    private Integer port;

    private String host = "127.0.0.1";


    public ServerProperties(Integer port, String host) {
        this.port = port;
        this.host = host;
    }

    public ServerProperties() {
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    @Override
    public String toString() {
        return "ServerProperties{" +
                "port=" + port +
                ", host='" + host + '\'' +
                '}';
    }
}
